﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _1.FillingMatrix
{
    class FillMatrixVariant1A
    {
        static void Main(string[] args)
        {
            Console.Write("n=");
            int n = int.Parse(Console.ReadLine());
            Console.WriteLine();
            int[,] matrix = new int[n, n];

            for (int row = 1; row <= n; row++)
            {
                for (int col = row ; col <= n * n; col += n)
                {
                     Console.Write("{0,4}", col);
                   
                }
                Console.WriteLine();

            }
        }
    }
}
